import { request } from "../request"
// 获取车辆管理列表
export const addresslist = (data) => {
  return request({
    url: 'myaddress/addresslist',
    method: 'POST',
    data
  })
}

// 新增地址
export const addressadd = (data) => {
  return request({
    url: 'myaddress/addressadd',
    method: 'POST',
    data
  })
}
// 删除地址
export const addressdelete = (data) => {
  return request({
    url: 'myaddress/addressdelete',
    method: 'POST',
    data
  })
}
// 设置地址为默认
export const addressdefault = (data) => {
  return request({
    url: 'myaddress/addressdefault',
    method: 'POST',
    data
  })
}
// 获取默认地址
export const getAddressdefault = (data) => {
  return request({
    url: 'myaddress/getAddressdefault',
    method: 'POST',
    data
  })
}